package com.shoppingmall.bean;

import java.io.Serializable;

public class GoodsBean implements Serializable {

    private boolean choosed;
    /**
     * descript :
     * serise : 1
     * stock : 999
     * eName : TIME-SHARING CLEANSING MILK
     * scale : 1箱（36盒）
     * qrCode :
     * img : /images/home/commodity/6/6.jpg
     * color :
     * mPrice : 198
     * aPrice : null
     * start : null
     * quality :
     * name : 分时肌透洁面乳
     * id : 6
     * type :
     * size :
     */

    private String descript;
    private int serise;
    private int stock;
    private String eName;
    private String scale;
    private String qrCode;
    private String img;
    private String color;
    private float mPrice;
    private float aPrice;
    private String start;
    private String quality;
    private String name;
    private String id;
    private String type;
    private String size;

    private int buyCount;//购买数量
    private int boxNum;//每个系列的盒数
    private String cartId;//在购物车里的id

    public boolean isChoosed() {
        return choosed;
    }

    public void setChoosed(boolean choosed) {
        this.choosed = choosed;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    public int getSerise() {
        return serise;
    }

    public void setSerise(int serise) {
        this.serise = serise;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    public String getScale() {
        return scale;
    }

    public void setScale(String scale) {
        this.scale = scale;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public float getmPrice() {
        return mPrice;
    }

    public void setmPrice(float mPrice) {
        this.mPrice = mPrice;
    }

    public float getaPrice() {
        return aPrice;
    }

    public void setaPrice(float aPrice) {
        this.aPrice = aPrice;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getQuality() {
        return quality;
    }

    public void setQuality(String quality) {
        this.quality = quality;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public int getBuyCount() {
        return buyCount;
    }

    public void setBuyCount(int buyCount) {
        this.buyCount = buyCount;
    }

    //ps系列一箱是24盒 ut系列是48盒 格丽缇是36
    // 1-格丽缇 2-Utomorrow 3-Pslady
    public int getBoxNum() {
        if (serise == 1) boxNum = 36;
        if (serise == 2) boxNum = 48;
        if (serise == 3) boxNum = 24;
        return boxNum;
    }

    public String getCartId() {
        return cartId;
    }

    public void setCartId(String cartId) {
        this.cartId = cartId;
    }
}
